package com.renting.modules.medical.entity;

import com.renting.common.entity.Image;
import com.renting.modules.sys.entity.User;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

//医疗影像
@Entity
@Table(name = "MEDICAL_IMAGE")
public class MedicalImage extends Image {

    private String description;//描述
    @ManyToOne
    @JoinColumn(name = "patient", referencedColumnName = "id")
    private User patient;//病人

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public User getPatient() {
        return patient;
    }

    public void setPatient(User patient) {
        this.patient = patient;
    }
}
